package com.s.rpc.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * @author ShenshenLuo
 * @email luoshenshen@buaa.edu.cn
 * @date 2025/5/11 14:29
 **/
@Data
public class RpcResponse implements Serializable {

    private String requestId;

    private Integer code;

    private Boolean success;

    private Object data;

    private Throwable error;

    public boolean isError() {
        return error != null;
    }
}
